@import "mixin";

@mixin title() {
  padding-left: rem(4px);
  border-left: rem(3px) solid #dc3838;
  font-size: rem(16px);
  color: #333333;
}

@mixin confirm-btn {
  width: rem(345px);
  height: rem(49px);
  line-height: rem(49px);
  text-align: center;
  border-radius: rem(4px);
  background-color: #dc3838;
  font-size: rem(18px);
  color: #ffffff;
}

body {
  padding-bottom: rem(49px);
}

.apply-top {
  position: relative;
  margin-bottom: rem(10px);
  //padding: rem(20px) rem(16px) 0;
  width: 100%;
  //height: rem(359px);
  background-color: #fff;
  @include border-bottom-1px(#e5e5e5);
  >.applt-top-bg {
    //position: absolute;
    //top: 0;
    width: 100%;
    height: rem(186px);
    background: url("../images/apply-pusher-top-bg.png") no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    text-align: center;
    font-size: 0;
    >h3 {
      display: inline-block;
      margin-top: rem(32px);
      width: rem(187px);
      height: rem(32px);
      line-height: rem(32px);
      text-align: center;
      background-color: #fff;
      border-radius: rem(3px);
      font-weight: bold;
      font-size: rem(20px);
      color: #dc3838;
    }
    >p {
      margin-top: rem(8px);
      line-height: rem(16px);
      font-size: rem(16px);
      color: #ffffff;
    }
  }
  >h3 {
    position: relative;
    margin: rem(-40px) rem(16px) 0;
    padding-left: rem(20px);
    font-size: rem(16px);
    color: #ffffff;
    &:before {
      content: '';
      width: rem(12px);
      height: rem(12px);
      background-color: #ffffff;
      display: inline-block;
      border-radius: 50%;
      position: absolute;
      left: 0;
      top: 50%;
      margin-top: rem(-6px);
      z-index: 10;
    }
    &:after {
      content: '';
      border-left: rem(2px) dashed #dc3838;
      width: rem(2px);
      height: rem(360px);
      display: inline-block;
      position: absolute;
      left: rem(5px);
      top: rem(6px);
    }
  }
  >.list-wrapper {
    margin: rem(40px) rem(16px) 0;
    padding-bottom: rem(10px);
    >.list-item {
      position: relative;
      margin: rem(3px) 0;
      font-size: 0;
      >p {
        padding-left: rem(30px);
        line-height: rem(24px);
        font-size: rem(15px);
        color: #333333;
      }
      >span {
        display: block;
        padding-left: rem(30px);
        line-height: rem(18px);
        font-size: rem(13px);
        color: #999999;
      }
      &:before {
        content: '';
        position: absolute;
        top: rem(8px);
        left: rem(16px);
        display: inline-block;
        width: rem(8px);
        height: rem(8px);
        background-color: #dc3838;
        border-radius: 50%;
      }
    }
  }
}

.apply-middle {
  padding: rem(20px) rem(16px) 0;
  width: 100%;
  //height: rem(127px);
  background-color: #fff;
  >h3 {
    @include title;
  }
  >.bg-wrapper {
    margin-top: rem(20px);
    width: 100%;
    font-size: 0;
    >img {
      margin: 0 0 rem(17px) 0;
      width: 100%;
    }
    >.bg-text {
      display: flex;
      width: 100%;
      >p {
        flex: 1;
        text-align: center;
        font-size: rem(15px);
        color: #333333;
      }
      &:last-child {
        >p {
          &:nth-child(1) {
            text-align: left;
          }
          &:nth-child(2) {
            text-align: center;
          }
          &:nth-child(3) {
            text-align: right;
          }
        }
      }
    }
  }
}
.apply-bottom {
  padding: rem(10px) rem(16px);
  >p {
    line-height: rem(18px);
    font-size: rem(12px);
    color: #999999;
  }
}
.apply-btn-wrapper {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: rem(49px);
  background-color: #dc3838;
  >a {
    display: block;
    width: 100%;
    height: rem(49px);
    line-height: rem(49px);
    text-align: center;
    font-size: rem(18px);
    color: #ffffff;
  }
}

/*解绑成功样式*/
.result-banner {
  padding-top: rem(70px);
  width: 100%;
  height: rem(310px);
  background-color: #fff;
  @include border-bottom-1px(#e5e5e5);
  >.result {
    text-align: center;
    >.icon-register-correct {
      display: inline-block;
      width: rem(100px);
      height: rem(100px);
      @include bg-image('../images/icon-register-correct')
    }
    >.icon-register-error {
      display: inline-block;
      width: rem(100px);
      height: rem(100px);
      @include bg-image('../images/icon-register-error')
    }
    >p {
      height: rem(50px);
      line-height: rem(50px);
      font-size: rem(16px);
      color: #333333;
    }
  }
  >.result-message {
    text-align: center;
    >p {
      line-height: rem(25px);
      font-size: rem(13px);
      color: #666666;
    }
  }
  &.mb25 {
    margin-bottom: rem(25px);
  }
}


.btn-wrapper {
  text-align: center;
  font-size: 0;
  >a {
    display: inline-block;
    @include confirm-btn
  }
  >p {
    margin-top: rem(20px);
    font-size: rem(13px);
    color: #333333;
  }
}